<script type="text/javascript">
	$(function() {
		$("#checkAllUser").click(function() {
			$("#RoleUser input[name='id']").attr("checked", this.checked);
		});
		var $subBox = $("#RoleUser input[name='id']");
		$subBox.click(function() {
					$("#checkAllUser").attr("checked",
						$subBox.length == $("#RoleUser input[name='id']:checked").length ? true
											: false);
				});
	});
</script>

<form method="post" id="editRoleUserForm" action="${basePath}/system/role/saveuser"  height="100%">
	<div  id="edituser" value="${string}" height="100%">
		<table  id="RoleUser" class="table table-striped " table-layout="fixed">
			<tr >
				<th align="center"  width="3%"  >
					<input  id="checkAllUser" name="" type="checkbox" value="" scope="col" />
				</th>
				<th  width="22%" scope="col" >Full Name</th>
				<th  width="22%" scope="col" >Username</th>
			</tr>
			<#list list as item>
			<tr height="100%" <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
				<td align="center" ><input align="center" id="${item.isSelect}" name="id" type="checkbox" value="${item.id}"
					 <#if item.isSelect == "SELECT" > checked="checked" </#if>>
				</td>
		        <td height="100%">${item.name}</td>
		        <td height="100%">${item.username}</td>
		    </tr>
			</#list>
		</table>
	</div>
</form>



